package org.hj.modules.demo.test.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.hj.modules.demo.test.entity.HjDemo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * 测试demo
 */
public interface HjDemoMapper extends BaseMapper<HjDemo> {

	public List<HjDemo> getDemoByName(@Param("name") String name);
	
	/**
	 * 查询列表数据 直接传数据权限的sql进行数据过滤
	 * @param page
	 * @param permissionSql
	 * @return
	 */
	public IPage<HjDemo> queryListWithPermission(Page<HjDemo> page, @Param("permissionSql") String permissionSql);

}
